<template>
  <div class="Chart">
    <div class="part">
      <m-title>折线图</m-title>
      <m-charts-line
          :data="[
            {
              name: 'A',
              data: [
                {name: 'Mon', value: 123},
                {name: 'Tue', value: 23},
                {name: 'Wed', value: 213},
                {name: 'Thu', value: 12},
                {name: 'Fri', value: 45},
                {name: 'Sat', value: 98},
                {name: 'Sun', value: 329},
              ],
            },
            {
              name: 'B',
              data: [
                {name: 'Mon', value: 23},
                {name: 'Tue', value: 23},
                {name: 'Wed', value: 13},
                {name: 'Thu', value: 12},
                {name: 'Fri', value: 45},
                {name: 'Sat', value: 98},
                {name: 'Sun', value: 29},
              ]
            }
          ]"
      ></m-charts-line>
    </div>

    <div class="part">
      <m-title>柱状图</m-title>
      <m-charts-bar
          :data="[
            {
              name: 'A',
              data: [
                {name: 'Mon', value: 123},
                {name: 'Tue', value: 23},
                {name: 'Wed', value: 23},
                {name: 'Thu', value: 12},
                {name: 'Fri', value: 45},
                {name: 'Sat', value: 98},
                {name: 'Sun', value: 39},
              ],
            },
            {
              name: 'B',
              data: [
                {name: 'Mon', value: 123},
                {name: 'Tue', value: 23},
                {name: 'Wed', value: 213},
                {name: 'Thu', value: 12},
                {name: 'Fri', value: 45},
                {name: 'Sat', value: 98},
                {name: 'Sun', value: 329},
              ]
            }
          ]"
      ></m-charts-bar>
    </div>

    <div class="part">
      <m-title>柱状图2</m-title>
      <m-charts-bar
          :data="[
            {
              name: 'A',
              data: [
                {name: 'Mon', value: 123},
                {name: 'Tue', value: 23},
                {name: 'Wed', value: 23},
                {name: 'Thu', value: 12},
                {name: 'Fri', value: 45},
                {name: 'Sat', value: 98},
                {name: 'Sun', value: 39},
              ],
            }
          ]"
          type="SpacecgBar"
      ></m-charts-bar>
    </div>

    <div class="part">
      <m-title>饼图</m-title>
      <m-charts-pie
          :data="[
            {
              name: 'A',
              data: [
                {name: 'Mon', value: 123},
                {name: 'Tue', value: 23},
                {name: 'Wed', value: 213},
                {name: 'Thu', value: 12},
                {name: 'Fri', value: 45},
                {name: 'Sat', value: 98},
                {name: 'Sun', value: 329},
              ],
            }
          ]"
      ></m-charts-pie>
    </div>
    <div class="part">
      <m-title>饼图2</m-title>
      <m-charts-pie
          :data="[
            {
              name: 'A',
              data: [
                {name: 'Mon', value: 123},
                {name: 'Tue', value: 23},
                {name: 'Wed', value: 213},
                {name: 'Thu', value: 12},
                {name: 'Fri', value: 45},
                {name: 'Sat', value: 98},
                {name: 'Sun', value: 329},
              ],
            }
          ]"
          type="SpacecgPie"
      ></m-charts-pie>
    </div>
  </div>
</template>

<script>
export default {
  name: "Chart",
  data() {
    return {}
  },
  components: {},
  mounted() {
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
@import "@/MUI/style/var.scss";
  .part{
    margin-bottom: px2(40);
  }
</style>
